package com.validant.enigma3.common;

import com.validant.enigma3.common.Constants.Browser;

public class Configuration {
	
	/*
	 * get properties configured in pom.xml file
	 */
	
	/*
	 * get Browser's configuration
	 */
	public static Browser getBrowser() {
		return Utils.toBrowser(System.getProperty(Constants.SYS_CONFIG_TEST_BROWSER));
	}
	
	/*
	 * get base URL's configuration
	 */
	public static String getBaseURL() {
		return System.getProperty(Constants.SYS_CONFIG_TEST_BASEURL);
	}
	
	/*
	 * get default time out
	 */
	public static String getDefTimeout() {
		return System.getProperty(Constants.SYS_CONFIG_TEST_DEF_TIMEOUT);
	}
	
	/*
	 * get UI Map file
	 */
	public static String getUIMapFile() {
		return System.getProperty(Constants.SYS_CONFIG_UI_MAP_FILE);
	}
	
	/*
	 * get screenshot directory
	 */
	public static String getScreenshotDir() {
		return System.getProperty(Constants.SYS_CONFIG_SCREENSHOT_DIR);
	}
}
